package com.gzx.spring.db.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fhs.core.trans.vo.TransPojo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * 风控运行结果
 */
@Getter
@Setter
@TableName("risk_rule_api")
public class RiskRuleApi implements Serializable, TransPojo {

	private static final long serialVersionUID = 1L;

	@TableId
	@Schema(description = "主键")
	private String id;

	@Schema(description = "结果id")
	private String rid;

	@Schema(description = "规则组")
	private String groupName;

	@Schema(description = "api厂商")
	private String apiGroup;

	@Schema(description = "api名")
	private String apiName;

	@Schema(description = "执行顺序")
	private String ruleOrder;

	@Schema(description = "api耗时")
	private Long apiUsed;

	@Schema(description = "数据内容")
	private String dataContent;

	@Schema(description = "执行结果：true通过，false失败")
	private String ruleResult;

	@Schema(description = "拒绝规则")
	private String rejectRule;

	@Schema(description = "拒绝原因")
	private String rejectMsg;

	@Schema(description = "创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime createdTime;
}
